package com.root;

public class Person  {

	private String name;

	private String id;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public boolean equals(Object obj) {

		if (!(obj instanceof Person)) {
			return false;
		}
		Person personIn = (Person) obj;

		if (personIn.getId() == this.id) {
			return true;
		}

		return false;

	}

	@Override
	public int hashCode() {
		return id.hashCode();
	}

	 

}
